package com.fang.mmy.user.controller;

import com.fang.mmy.user.service.RocketMQService;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LoginController
 * @Author kebukeyi
 * @Date 2022/8/12 11:26
 * @Description
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/user")
public class LoginController {


    @Autowired
    private RocketMQService rocketMQService;


    @RequestMapping("/login")
    public String login(String userId) {
        rocketMQService.sendMessage(userId);
        return "OK";
    }
}
